package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 评论评价对象 it_evaluate
 * 
 * @author ruoyi
 * @date 2022-01-26
 */
public class ItEvaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    //评论时间
    private String createTimeStr;

    /** 删除标记 0 否 1 是 */
    @Excel(name = "删除标记 0 否 1 是")
    private Integer isDeleted;

    /** 关联公司表id */
    @Excel(name = "关联公司表id")
    private String companyId;

    /** 评价类型  0 点赞  1 评论 */
    @Excel(name = "评价类型  0 点赞  1 评论")
    private int state;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String itContent;

    /** 被点赞/评论id */
    @Excel(name = "被点赞/评论id")
    private String repliedBy;

    //点赞数
    private int supportNum;
    //评论实体
    private List<ItEvaluate> itEvaluateList;

    public List<ItEvaluate> getItEvaluateList() {
        return itEvaluateList;
    }

    public void setItEvaluateList(List<ItEvaluate> itEvaluateList) {
        this.itEvaluateList = itEvaluateList;
    }

    public int getSupportNum() {
        return supportNum;
    }

    public void setSupportNum(int supportNum) {
        this.supportNum = supportNum;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCompanyId(String companyId) 
    {
        this.companyId = companyId;
    }

    public String getCompanyId() 
    {
        return companyId;
    }
    public void setState(int state)
    {
        this.state = state;
    }

    public int getState()
    {
        return state;
    }
    public void setItContent(String itContent) 
    {
        this.itContent = itContent;
    }

    public String getItContent() 
    {
        return itContent;
    }
    public void setRepliedBy(String repliedBy)
    {
        this.repliedBy = repliedBy;
    }

    public String getRepliedBy() 
    {
        return repliedBy;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("isDeleted", getIsDeleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("createTimeStr", getCreateTimeStr())
            .append("companyId", getCompanyId())
            .append("state", getState())
            .append("itContent", getItContent())
            .append("repliedBy", getRepliedBy())
            .toString();
    }
}
